package 练习;

//减肥计划 if语句完成

import java.util.Scanner;

public class test01 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("请输入星期数：");
            int a = sc.nextInt();
            if (a == 1) {
                System.out.println("跑步");
            } else if (a == 2) {
                System.out.println("游泳");
            } else if (a == 3) {
                System.out.println("慢走");
            } else if (a == 4) {
                System.out.println("动感单车");
            } else if (a == 5) {
                System.out.println("拳击");
            } else if (a == 6) {
                System.out.println("爬山");
            } else if (a == 7) {
                System.out.println("好好吃一顿");
            } else {
                System.out.println("输入数据有误");
            }
        }
    }
}